package Day08_18;

import java.io.FileOutputStream;
import java.io.PrintStream;

public class Test_PrintStream01 {
    public static void main(String[] args) throws Exception{
//        PrintStream  ps = System.out ;
//        ps.println("Hello World!");
//        for(String i:args){
//            System.out.println(i);
//        }
        PrintStream printstream = new PrintStream(new FileOutputStream("log"));
        System.setOut(printstream);
        System.out.println("Hello World!!!");

    }
}
